package oop2.exer2;

/**
 * Created with IntelliJ IDEA.
 * ClassName: BankTest
 * Package: oop2.exer2
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-11-21
 * Time: 16:09
 */

public class BankTest {

    public static void main(String[] args) {
        Bank bank = new Bank();

        bank.addCustomer("操","曹");

        bank.addCustomer("备","刘");

        bank.getCustomer(0).setAccount(new Account(1000));
        bank.getCustomer(0).getAccount().withdraw(50);

        System.out.println("账户余额: " + bank.getCustomer(0).getAccount().getBalance());

    }
}
